package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * Fundingsource generated by hbm2java
 */
@Entity
@Table(name="fundingsource"
    
, uniqueConstraints = {  }
)

public class Fundingsource  implements java.io.Serializable {


    // Fields    

     private int id;
     private String sourceName;
     private String businessName;
     private Double initialamount;
     private String source;
     private String deliveredvia;
     private String contactpeople;
     private Long days;
     private Long hours;
     private String stategovernment;
     private String federalgovernment;
     private String notes;
     private String contactposition;
     private String tel1;
     private String tel2;
     private String email;
     private String display;
     private Set<Personfundingsource> personfundingsources = new HashSet<Personfundingsource>(0);
     private Set<Personcoursefundingsource> personcoursefundingsources = new HashSet<Personcoursefundingsource>(0);
     private Set<Expense> expenses = new HashSet<Expense>(0);


    // Constructors

    /** default constructor */
    public Fundingsource() {
    }

	/** minimal constructor */
    public Fundingsource(int id, String sourceName, String businessName) {
        this.id = id;
        this.sourceName = sourceName;
        this.businessName = businessName;
    }
    
    /** full constructor */
    public Fundingsource(int id, String sourceName, String businessName, Double initialamount, String source, String deliveredvia, String contactpeople, Long days, Long hours, String stategovernment, String federalgovernment, String notes, String contactposition, String tel1, String tel2, String email, String display, Set<Personfundingsource> personfundingsources, Set<Personcoursefundingsource> personcoursefundingsources, Set<Expense> expenses) {
        this.id = id;
        this.sourceName = sourceName;
        this.businessName = businessName;
        this.initialamount = initialamount;
        this.source = source;
        this.deliveredvia = deliveredvia;
        this.contactpeople = contactpeople;
        this.days = days;
        this.hours = hours;
        this.stategovernment = stategovernment;
        this.federalgovernment = federalgovernment;
        this.notes = notes;
        this.contactposition = contactposition;
        this.tel1 = tel1;
        this.tel2 = tel2;
        this.email = email;
        this.display = display;
        this.personfundingsources = personfundingsources;
        this.personcoursefundingsources = personcoursefundingsources;
        this.expenses = expenses;
    }
    

   
    // Property accessors
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)

    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="sourceName", unique=false, nullable=false, insertable=true, updatable=true, length=100)

    public String getSourceName() {
        return this.sourceName;
    }
    
    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }
    @Column(name="businessName", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getBusinessName() {
        return this.businessName;
    }
    
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }
    @Column(name="initialamount", unique=false, nullable=true, insertable=true, updatable=true, precision=22, scale=0)

    public Double getInitialamount() {
        return this.initialamount;
    }
    
    public void setInitialamount(Double initialamount) {
        this.initialamount = initialamount;
    }
    @Column(name="source", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getSource() {
        return this.source;
    }
    
    public void setSource(String source) {
        this.source = source;
    }
    @Column(name="deliveredvia", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getDeliveredvia() {
        return this.deliveredvia;
    }
    
    public void setDeliveredvia(String deliveredvia) {
        this.deliveredvia = deliveredvia;
    }
    @Column(name="contactpeople", unique=false, nullable=true, insertable=true, updatable=true, length=200)

    public String getContactpeople() {
        return this.contactpeople;
    }
    
    public void setContactpeople(String contactpeople) {
        this.contactpeople = contactpeople;
    }
    @Column(name="days", unique=false, nullable=true, insertable=true, updatable=true, precision=10, scale=0)

    public Long getDays() {
        return this.days;
    }
    
    public void setDays(Long days) {
        this.days = days;
    }
    @Column(name="hours", unique=false, nullable=true, insertable=true, updatable=true, precision=10, scale=0)

    public Long getHours() {
        return this.hours;
    }
    
    public void setHours(Long hours) {
        this.hours = hours;
    }
    @Column(name="stategovernment", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getStategovernment() {
        return this.stategovernment;
    }
    
    public void setStategovernment(String stategovernment) {
        this.stategovernment = stategovernment;
    }
    @Column(name="federalgovernment", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getFederalgovernment() {
        return this.federalgovernment;
    }
    
    public void setFederalgovernment(String federalgovernment) {
        this.federalgovernment = federalgovernment;
    }
    @Column(name="notes", unique=false, nullable=true, insertable=true, updatable=true, length=10000)

    public String getNotes() {
        return this.notes;
    }
    
    public void setNotes(String notes) {
        this.notes = notes;
    }
    @Column(name="contactposition", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getContactposition() {
        return this.contactposition;
    }
    
    public void setContactposition(String contactposition) {
        this.contactposition = contactposition;
    }
    @Column(name="tel1", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getTel1() {
        return this.tel1;
    }
    
    public void setTel1(String tel1) {
        this.tel1 = tel1;
    }
    @Column(name="tel2", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getTel2() {
        return this.tel2;
    }
    
    public void setTel2(String tel2) {
        this.tel2 = tel2;
    }
    @Column(name="email", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="fundingsource")

    public Set<Personfundingsource> getPersonfundingsources() {
        return this.personfundingsources;
    }
    
    public void setPersonfundingsources(Set<Personfundingsource> personfundingsources) {
        this.personfundingsources = personfundingsources;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="fundingsource")

    public Set<Personcoursefundingsource> getPersoncoursefundingsources() {
        return this.personcoursefundingsources;
    }
    
    public void setPersoncoursefundingsources(Set<Personcoursefundingsource> personcoursefundingsources) {
        this.personcoursefundingsources = personcoursefundingsources;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="fundingsource")

    public Set<Expense> getExpenses() {
        return this.expenses;
    }
    
    public void setExpenses(Set<Expense> expenses) {
        this.expenses = expenses;
    }
    

	public void setDisplay(String display) {
		this.display = display;
	}

    @Column(name="display", unique=false, nullable=true, insertable=true, updatable=true, length=100)
	public String getDisplay() {
		return display;
	}

}
